<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="css/font-awesome.css" />
		<link rel="stylesheet" type="text/css" href="css/simditor.css" />
		<link rel="stylesheet" type="text/css" href="css/boke.css" />
		<style type="text/css">

		</style>
	</head>

	<body>
		<div id="bilibili">
			<input type="text" name="title" id="title" value="标题" />
			<textarea id="content" name="" rows="50px" cols="100px" placeholder="内容"></textarea>
			<div id="tijiao">提交</div>
		</div>
	</body>
	<script src="js/jquery-1.12.3.js" type="text/javascript" charset="utf-8"></script>
	<script src="js/module.js" type="text/javascript" charset="utf-8"></script>
	<script src="js/simditor.js" type="text/javascript" charset="utf-8"></script>
	<script src="js/uploader.js" type="text/javascript" charset="utf-8"></script>
	<script type="text/javascript">	
		var content = new Simditor({
			textarea: $('#content')
		})
		$("#tijiao").click(function() {
			var xxx = $("#content").val();
			var tit = $("#title").val();
			$.ajax({
				type: "GET",
				url: "php/boke.php",
				async: true,
				data: {
					title: tit,
					boke: xxx,
					act: "text"
				},
				success: function(data) {
					alert("提交成功");
					 window.location.href="boke1.php";
				}
			});
		})
	</script>

</html>